:global(.ant-modal-wrap-rtl) {
  .un-replied-detail-start,
  .un-replied-detail-end {
    span {
      transform: scaleX(-1) !important;
    }
  }
}

.un-replied-modal {
  :global(.ant-modal-content) {
    padding: 0 !important;
  }

  .un-replied-header {
    padding: 18px 24px !important;
    border-bottom: 1px solid #dcdfe6 !important;
    margin-bottom: 0 !important;

    :global(.ant-modal-title) {
      color: #16202d;
      font-family: Roboto Condensed;
      font-size: 22px;
      font-style: normal;
      font-weight: 700;
    }
  }

  .un-replied-body {
    display: flex;
    align-items: center;
    flex-direction: column;

    .un-replied {
      width: 100%;
      display: flex;
      justify-content: space-between;

      .un-replied-left {
        width: 255px;
        display: flex;
        flex-direction: column;
        border-right: 1px solid #f2f4f8;
        background: linear-gradient(
          0deg,
          rgba(225, 244, 255, 20%) -22.76%,
          rgba(225, 244, 255, 0%) 101.97%
        );

        .un-replied-left-title {
          display: flex;
          align-items: center;
          gap: 12px;
          padding: 22px 24px 10px;

          .un-replied-title-text {
            color: #16202d;
            font-family: Roboto Condensed;
            font-size: 15px;
            font-weight: bold;
          }

          .un-replied-title-num {
            display: block;
            padding: 3px 6px;
            gap: 10px;
            border-radius: 27px;
            background: #e93323;
            color: #fff;
            font-family: Roboto Condensed;
            font-size: 11px;
            font-weight: bold;
          }
        }

        .un-replied-left-list {
          height: 470px;
          overflow: auto;
          display: flex;
          flex-direction: column;

          .un-replied-item {
            cursor: pointer;
            padding: 20px 24px 0;

            .un-replied-item-main {
              display: flex;
              align-items: center;
              padding-bottom: 16px;
              border-bottom: 1px solid #dcdfe6;
              gap: 12px;

              .un-replied-item-avatar {
                width: 39px;
                height: 39px;
              }

              .un-replied-item-content {
                display: flex;
                flex-direction: column;
                gap: 7px;
                width: calc(100% - 48px);

                .un-replied-item-title {
                  display: flex;
                  justify-content: space-between;
                  gap: 10px;

                  .un-replied-item-name {
                    color: #16202d;
                    font-family: Roboto Condensed;
                    font-size: 13px;
                    font-weight: 700;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                  }

                  .un-replied-item-date {
                    color: #9db2bf;
                    font-family: Roboto Condensed;
                    font-size: 13px;
                    font-weight: 400;
                  }
                }

                .un-replied-item-description {
                  color: #464646;
                  font-family: Roboto Condensed;
                  font-size: 12px;
                  font-weight: 400;
                  width: 100%;
                  white-space: nowrap;
                  text-overflow: ellipsis;
                  overflow: hidden;
                }
              }
            }
          }

          .un-replied-item-active {
            background-color: #e7f2f9;
          }
        }

        .un-replied-left-footer {
          padding: 20px 24px 30px;

          .un-replied-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            border: 1px solid #44c5e4;
            border-radius: 30px;
            padding: 8px 0;
            cursor: pointer;

            .un-replied-button-text {
              color: #44c5e4;
              font-family: Roboto Condensed;
              font-size: 15px;
              font-weight: bold;
            }
          }
        }
      }

      .un-replied-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 16px 24px;
        position: relative;
        padding-bottom: 50px;

        .un-replied-right-title {
          display: flex;
          align-items: center;
          justify-content: space-between;

          .un-replied-title-logo {
            display: flex;
            align-items: center;
            gap: 8px;

            .un-replied-title-avatar {
              width: 30px;
              height: 30px;
            }

            .un-replied-title-name {
              color: #16202d;
              font-family: Roboto Condensed;
              font-size: 14px;
              font-weight: 700;
            }
          }

          .un-replied-title-date {
            color: #9db2bf;
            font-family: Roboto Condensed;
            font-size: 14px;
            font-weight: 400;
          }
        }

        .un-replied-detail {
          display: flex;
          flex-direction: column;

          .un-replied-detail-text {
            color: #464646;
            font-family: Roboto Condensed;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 23px;
            max-height: 140px;
            overflow: auto;
          }

          .un-replied-detail-start,
          .un-replied-detail-end {
            color: #464646;
            font-family: Roboto Condensed;
            font-size: 32px;
            font-weight: bold;
            display: flex;
          }

          .un-replied-detail-start {
            transform: translateY(13px);
          }

          .un-replied-detail-end {
            float: right;
            justify-content: flex-end;
            margin-top: 5px;
          }
        }

        .un-replied-textarea-label,
        .un-replied-attachments-label {
          color: #16202d;
          font-family: Roboto Condensed;
          font-size: 16px;
          font-weight: 700;
          margin-bottom: 15px;
          display: inline-flex;
          align-items: center;
          gap: 6px;

          .un-replied-alert-icon {
            cursor: pointer;
            width: 17px;
            height: 17px;
          }
        }

        .un-replied-textarea {
          margin-bottom: 30px;
        }

        .un-replied-attachments {
          .un-replied-attachments-add {
            color: #44c5e4;
            font-family: Tajawal;
            font-size: 14px;
            font-weight: 700;

            span {
              cursor: pointer;
            }
          }

          .un-replied-attachments-file {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin: 0 0 16px;

            .un-replied-attachments-file-item {
              direction: ltr;
              padding-right: 10px;
              gap: 12px;
              border-radius: 6px;
              background: rgba(214, 220, 224, 30%);
              display: flex;
              align-items: center;
              justify-content: space-between;

              .file-icon {
                width: 34px;
                height: 34px;
              }

              .file-text {
                line-height: 18px;
                height: 18px;
                color: #464646;
                font-family: Avenir;
                font-size: 12px;
                border-right: 1px solid #d6dce0;
                padding-right: 11px;
              }

              .file-close {
                cursor: pointer;
                width: 20px;
                height: 20px;
              }
            }
          }
        }

        .un-replied-right-footer {
          margin-top: 15px;
          position: absolute;
          bottom: 30px;
          right: 24px;

          .un-replied-submit {
            display: flex;
            padding: 8px 24px;
            align-items: center;
            border-radius: 100px;
            background: #44c5e4;
            cursor: pointer;

            .un-replied-submit-text {
              color: #fff;
              font-family: Roboto Condensed;
              font-size: 15px;
            }
          }
        }
      }
    }
  }
}

.un-replied-wrapper {
  background-color: rgba(254, 253, 253, 60%) !important;
  box-shadow: 0 10px 70px 0 rgba(68, 197, 228, 20%) inset !important;
  backdrop-filter: blur(10px) !important;
}
